package com.bw.dao;

import com.bw.pojo.vo.PurchaseVo;

import java.math.BigDecimal;
import java.sql.Connection;
import java.util.List;

public interface PurchaseDao {
    List<PurchaseVo> getPurchaseList(PurchaseVo purchaseVo);

    int count(PurchaseVo purchaseVo);

    int addPurchase(Connection conn, PurchaseVo purchaseVo);

    void addPurGoods(Connection conn, int purchaseId, Integer goodsId, Integer num, BigDecimal money);

    void updGoods(Connection conn, Integer num, Integer goodsId);

    Integer addPurchases(Connection conn, PurchaseVo purchaseVo);

    void getAddPurchase(Connection conn, Integer purchaseId, Integer goodsId, Integer num, BigDecimal money);

    void getUpdGoods(Connection conn, Integer num, Integer goodsId);
}
